package qnb._power.event;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import weixinkeji.vip.jweb.power.event.DefaultJWPControllerURLPowerEvent;
import weixinkeji.vip.jweb.power.vo.JWPCodeVO;

//JWPControllerURLPowerEvent
public class MyControllerURLPowerEvent extends DefaultJWPControllerURLPowerEvent {
	/**
	 * 
	 * 不在监控内 的请求地址。执行此方法
	 * 
	 * @param req        HttpServletRequest
	 * @param resp       HttpServletResponse
	 * @param requestURL String 用户请求的路径
	 * @param userPower  用户的权限
	 * 
	 * @return boolean 默认false,不放行！
	 * 
	 * @throws IOException  IO流异常
	 * @throws ServletException javax.servlet.ServletException
	 */
	@Override
	public boolean doOtherURL(HttpServletRequest req, HttpServletResponse resp, String requestURL,
			JWPCodeVO userPower) throws IOException, ServletException {
		System.out.println("不在监控范围内的url,默认放行");
		return true;
	}
}
